Skip to content

Conversation

@TexKiller
Copy link

Hello!

I have used this change in the past to collaborate with developers on Windows. I wonder if we can merge it upstream so I don't have to keep using my fork.

Please let me know if I need to do anything else

@MarioSimou
Copy link
Owner

Yes, we can merge this. Before merging, please:

  • Extract the sanitization logic into a separate function.
  • Add a comment explaining the purpose of the function, similar to the example below.
sanitizeFullPath(path){
  // Path Normalization for Windows - e.g "C:\\Users\\name\\file.txt" - "/Users/name/file.txt"
    return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/")
}
getFullPath(){
   return this.sanitizeFullPath(resolve(cwd(), ...args))
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants